Thread: [Win32] MP3 Playback

Hybrid View

Previous Post Previous Post   Next Post Next Post
  1. #1
    Registered User
    Join Date
    Sep 2004
    Location
    California
    Posts
    3,268
    Check into using DirectSound. I think this can do what you want.

  2. #2
    Registered User
    Join Date
    Mar 2005
    Posts
    69
    Quote Originally Posted by bithub
    Check into using DirectSound. I think this can do what you want.
    DirectSound uses the same Win32 structures used with waveOut* functions ( WAVEFORMATEX,...) so it doesn't support MP3

    Perhaps i can load the MP3 file in memory,then convert it to WAV format before reproduction,using DirectShow or other APIs and then play it

    Can DirectShow convert MP3 -> WAV ?

    Tronic,did you use those unknown APIs to convert the MP3s to WAV before sending them to OpenAL for reproduction?
    Try to remember their name

  3. #3
    Registered User
    Join Date
    Mar 2005
    Location
    Mountaintop, Pa
    Posts
    1,058
    Perhaps this tutorial can be of some help?

    DirectShow tutorial

    Part II should be able to play MP3

  4. #4
    Registered User
    Join Date
    Mar 2005
    Posts
    69
    Found it!!

    This is a Win32 function for converting from an MP3 stream to a WAV audio buffer,that can be used for reproduction with waveOut* (which can also reproduce several tracks together)

    http://64.233.183.104/search?q=cache...EGLAYER3&hl=it

    DirectShow is no longer necessary

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. which Portable mp3 player?
    By Raihana in forum A Brief History of Cprogramming.com
    Replies: 27
    Last Post: 01-09-2004, 07:58 AM
  2. MP3 to WAVE and WAVE to MP3 conversion
    By Blizzarddog in forum C++ Programming
    Replies: 8
    Last Post: 01-01-2004, 08:32 PM
  3. mp3 players vs mp3 cd players
    By Geo-Fry in forum A Brief History of Cprogramming.com
    Replies: 5
    Last Post: 12-06-2003, 09:22 PM
  4. Mp3
    By gvector1 in forum C# Programming
    Replies: 15
    Last Post: 07-08-2003, 05:48 PM